# -*- coding:utf-8 -*-


from django_filters.filterset import FilterSet
from ..models.role_menu import Role


class RoleFilter(FilterSet):
    class Meta:
        model = Role
        fields = {
            "roleName": ["contains"]
        }


class getMenuByRoleFilter(FilterSet):
    # role_in = filters.NumberFilter(field_name='role.id', lookup_expr='gte')

    class Meta:
        # model = RoleMenu
        fields = {
            "role_id": ["in"]
        }
